//显示具体数据的方法
$(function(){
    $.getJSON('../json/myConcern.json',function(response){
        var pageSize=response.length 
        var ul=document.getElementById('myFans')
        var strHTML=''
        for(var i=0 ; i<pageSize ; i++){
            if(response[i]){
                strHTML+=`<li>
                            <div class="left">
                                <img src="${response[i].image}" alt="">
                                <a href="" class="guanzhu">已关注</a>
                            </div>
                            <div class="right">
                                <a href="" class="userId">${response[i].username}</a>
                                <p>菜谱${response[i].userFans}</p>
                                <p>粉丝${response[i].userMenu}</p>
                            </div>
                        </li>`
            }
        }
        ul.innerHTML=strHTML
    })
})